package com.niiwoo.civet.mobile.vo.response.loan;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: wuke
 * @Description:
 * @Date: Created in 13:56 2018/4/14
 */
@Data
@ApiModel
public class LoanConfigResVO {
    @ApiModelProperty(value="产品名称")
    private String productName;

    @ApiModelProperty(value="最高借款金额")
    private BigDecimal maxAmount;

    @ApiModelProperty(value="最低借款金额")
    private BigDecimal minAmount;

    @ApiModelProperty(value="可用额度")
    private BigDecimal aviAmount;

    @ApiModelProperty(value="申请页面Banner图URL")
    private String bannerUrl;

    @ApiModelProperty(value="默认借款金额")
    private BigDecimal defaultLoanAmount;

    @ApiModelProperty(value="默认借款期限")
    private Short defaultLoanDeadline;

    @ApiModelProperty(value="可选借款期限")
    private List<Integer> deadlineList;

    @ApiModelProperty(value="借款可选标题")
    private List<String> loanTitleList;

    @ApiModelProperty(value="期限对应的利率配置列表")
    private List<LoanRateConfigVO> loanRateList;

    @ApiModelProperty(value="借款金额倍数")
    private Integer amountTimes;

    @Data
    public static class LoanRateConfigVO {

        @ApiModelProperty(value="借款期限")
        private Integer deadline;

        @ApiModelProperty(value="还款方式1、到期还本付息，2、等额本息")
        private Byte repaymentMode;

        @ApiModelProperty(value="借款利率")
        private BigDecimal borrowInterestRate;
    }
}
